package com.study.util;

import javax.servlet.ServletContext;

import org.springframework.web.context.ServletContextAware;

public class WebConfig implements ServletContextAware {

	private String beanName;
	//@Value("#{settings.webServer}")
	private String webServer;
	
	@Override
	public void setServletContext(ServletContext servletContext) {
		servletContext.setAttribute(beanName, webServer);
	}

	public String getBeanName() {
		return beanName;
	}

	public void setBeanName(String beanName) {
		this.beanName = beanName;
	}

	public String getWebServer() {
		return webServer;
	}

	public void setWebServer(String webServer) {
		this.webServer = webServer;
	}
	
}
